import base from '../utils/base.js'
import * as axios from '../utils/http.js'

const user = {
	//登录
    login(data, callback) {
        return axios.post(`${base.rq}/user/signIn`, data,{}).then(res => {
            callback(res);
        }, () => {

        })
    },
    refreshToken(data,callback) {
        return axios.get(`${base.rq}/user/refreshToken`,data,{}).then(res => {
            callback(res);
        }, () => {

        })
    },
    modifyPassword(data, callback) {
        return axios.post(`${base.rq}/user/modifyPwd`, data, {}).then(res => {
            callback(res);
        }, () => {

        })
    },


}

export default user
